 <?php	//User content start
					include("inc/config.php");
					mysql_select_db($forumdb);
	
					//User list
					$query_news=mysql_query("SELECT user_posts, username, user_id FROM phpbb_users ORDER BY user_posts DESC LIMIT 5") or die (mysql_error());
					$num_news=mysql_num_rows($query_news);
	
					$query_forum=mysql_query("SELECT topic_views, topic_title, topic_id, forum_id  FROM phpbb_topics ORDER BY topic_views DESC LIMIT 5") or die (mysql_error());
					$num_forum=mysql_num_rows($query_forum);
				    ?>
 <div id="layout-bottom">
            <div class="wrapper">
                <div id="footer">
		<div id="sitemap">
			<div class="column">
				<h3 class="bnet">
					<a href="http://azeroth-gaming.info/" tabindex="70">Site Map</a>
				</h3>

				<ul>
						<li><a href="index.php">Home</a></li>
						<li><a href="account.php">Create Account</a></li>
						<li><a href="/community/">Forum</a></li>
						<li><a href="/vote/">Vote</a></li>
						<li><a href="donate.php">Donate</a></li>
				</ul>
			</div>

			<div class="column">
				<h3 class="games">
					<a href="http://azeroth-gaming.info/" tabindex="70">Tools</a>
				</h3>

				<ul>
						<li><a href="top.php">Top Killers</a></li>
						<li><a href="arena.php">Top Arena Teams</a></li>
						<li><a href="statistics.php">Statistics</a></li>
						<li><a href="staff.php">Staff</a></li>
						<li><a href="profile.php">Profile</a></li>
				</ul>
			</div>

			<div class="column">
				<h3 class="account">
					<a href="http://azeroth-gaming.info/community/" tabindex="70">Top Posters</a>
				</h3>

				<ul>
						<?php while($fetch_news=mysql_fetch_array($query_news)) { $news_id	=	$fetch_news['user_id'];
						$uid = $fetch_news['user_id'];
						print(sprintf("<li><a href=\"http://forum.azeroth-gaming.info/community/memberlist.php?mode=viewprofile&u=%s\">", (string)$uid));?>
						<strong><?php print $fetch_news['username']; ?></strong>-->
						<?php print $fetch_news['user_posts']; ?>&nbsp; posts
						</a>
						</li>
						<?php }?>
				</ul>
			</div>

			<div class="column">
				<h3 class="support">
						<a href="http://azeroth-gaming.info/community/" tabindex="70">Hottest Forums</a>
				</h3>

				<ul>
						<?php while($fetch_forum=mysql_fetch_array($query_forum)) { $forum_id	=	$fetch_forum['topic_id'];
						$fid = $fetch_forum['forum_id'];
						$tid = $fetch_forum['topic_id'];
						print(sprintf("<li><a href=\"http://forum.azeroth-gaming.info/community/viewtopic.php?f=%s&t=%s\">", (string)$fid, (string)$tid));?><?php print $fetch_forum['topic_title'];?></a></li>
						<?php } ?>
				</ul>
			</div>
			
	<span class="clear"><!-- --></span>
		</div>
	<div id="copyright">
	<p align="center"><font color="FFFFFF">&copy 2010-2011 Azeroth-Gaming</br>Designed by<a href="#">Blizzard Entertainment</br></a>Codded by<a href="#">Ac0</a></font>
	</div>

		<div id="international"></div>

                </div>
            </div>
        </div>